<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
			<meta name="renderer" content="webkit"> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="IE=9" http-equiv="X-UA-Compatible" />
		<link rel="stylesheet" href="/Public/css/reset.css" type="text/css" media="screen" />
		<link rel="stylesheet" href="/Public/css/style_content.css" type="text/css" media="screen" />
		<link href="/Public/css/uploadify.css" rel="stylesheet" type="text/css" />
		<link rel="stylesheet" href="/Public/css/invalid.css" type="text/css" media="screen" />	
<script type="text/javascript" src="/Public/js/jquery-1.10.2.js"></script>
 <script type="text/javascript" src="/Public/js/jquery.uploadify.js"></script>		
 <script type="text/javascript" src="/Public/js/frame_js.js"></script>		
 <style>
.star{color:red;}
.uploadify-queue-item .cancel a {
	background: url('/Public/images/uploadify-cancel.png') 0 0 no-repeat;
}
</style>
	</head>

	<body>
		
		<script src="/Public/js/jquery.form.js" type="text/javascript"></script>
		 <script type="text/javascript" charset="utf-8" src="/Public/js/ueditor.config.js"></script>
								    <script type="text/javascript" charset="utf-8" src="/Public/js/ueditor.all.min.js"> </script>
								    <script type="text/javascript" charset="utf-8" src="/Public/js/lang/zh-cn/zh-cn.js"></script>
	<STYLE>
   .clear {  clear: both;   }
	.input_class{width:15px;height:10px;}
.star{color:red;}
	</STYLE>
	<div id="main-content">
			<!-- Page Head -->
			<div class="content-box">
				<div class="content-box-header">
					<h3>单页面列表</h3>
					<div class="clear"></div>
				</div> 
				<div class="content-box-content">
					<div class="tab-content default-tab" id="tab1"> 
						<div class="notification attention png_bg">
							<a href="#" class="close"><img src="/Public/images/cross_grey_small.png" title="Close this notification" alt="close" /></a>
							<div>
								提示！！
							</div>
						</div>
						<table>
							<thead>
								<tr>
								   <th>ID</th>
								   <th>页面标题</th>
								   <th>创建日期</th>
								   <th>操作</th>
								</tr>
							</thead>
							<tfoot>
								<tr>
									<td colspan="6">
											<div class="bulk-actions align-left">
											<a class="button" href="/admin/page/getPage"  target="_blank">新增</a>
										</div>
										<div class="pagination">
										<?php echo ($show); ?>
										</div>
										<div class="clear"></div>
									</td>
								</tr>
							</tfoot>
							<tbody>
								<?php if(is_array($list)): foreach($list as $key=>$vo): ?><tr>
									<td><?php echo ($vo['id']); ?></td>
									<td><a href="javascript:" target="_blank" title="<?php echo ($vo['title']); ?>"><?php echo ($vo['title']); ?></a></td>
									<td><?php echo ($vo["up_date"]); ?></td>
									<td>
										 <a href="/admin/page/getPage?id=<?php echo ($vo["id"]); ?>" title="修改" target="_blank"><img src="/Public/images/pencil.png" alt="修改"  /></a>
										 <a href="javascript:" title="删除"><img src="/Public/images/cross.png" alt="Delete"  onclick="pageDe(<?php echo ($vo["id"]); ?>);"/></a> 
									</td>
								</tr><?php endforeach; endif; ?>
							</tbody>
						</table>
					</div> 
				</div> 
			</div> 
		</div> 
<script>
										  //删除文章
										  function pageDe(id){
											  if(confirm("确定删除?")){
												  $.post("/admin/Page/pageDe",{id:id},function(data){
											        	 location.reload();
											             });     
												  };
											  }
</script>

	</body>
  
</html>